package inabit.data.expression.arithmetic;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import inabit.base.WorkingMemory;
/**@author Rafael Rocha*/
public class NumberExpression implements ArithmeticExpression{
	private Number number;
	
	public NumberExpression(Number number) {
		this.number = number;
	}
	@Override
	public String getResult(WorkingMemory wm) {
		return number.toString();
	}

	@Override
	public String stringForm() {
		return number.toString();
	}
	@Override
	public Collection<String> getReferenced() {
		List<String> all = new ArrayList<String>();
		return all;
	}
	@Override
	public boolean isLeaf() {
		return true;
	}

}
